const http = require("http");
// const server = http.createServer((req,res)=>{
//     res.end("hello world")
// })

const server = http.createServer((req,res)=>{
    res.end(
        `   <head>
            <meta charset="utf-8">
            </head>
            <body>
            <h1>hello 哈哈</h1>
            <a href="http://baidu.com/">baidu</a>
            </body>
        `
    )
})
server.listen(3000,()=>{
    console.log("服务器启动");
})